package com.babai.common;

/**
 * Constant Class
 */
public class Const {

    public static final String defaultPassword = "123456";

    /**
     * 占位ID，应对如下几种那情况
     * 1、前台未选择ID，但是后台需要ID参数，这时候前台传的ID值为-1就代表不传ID了
     * 2、新增部门的时候，父ID为-1，代表创建的一级部门（根部门）
     */
    public static final String HOLDER_ID = "-1";

    public static class YesOrNo {
        public static final Integer YES = 1;
        public static final Integer NO = 0;

        public static final String Y = "Y";
        public static final String N = "N";
    }


    /**
     * 字段类型
     */
    public static class FieldTypes {
        public static final String Timestamp = "Timestamp";
        public static final String String = "String";
    }

    /**
     * 日期格式化模板
     */
    public static class DateFormats {
        public static final String ymd = "yyyy-MM-dd";
        public static final String ymdhms = "yyyy-MM-dd HH:mm:ss";
        public static final String hms = "HH:mm:ss";
    }

    /**
     * 字段特殊值
     */
    public static class FieldValues {
        public static final String now = "$now";
        public static final String user = "$user";
        public static final String username = "$username";
    }


    /**
     * 字段特殊值
     */
    public static class DR {
        public static final String now = "$now";
    }


    public static class MessageTypes {

        public static final String txt = "txt";
        public static final String audio = "audio";
        public static final String video = "video";
        public static final String picture = "picture";

    }

    public static class OrderFlowStatus {
        public static final String UN_PAY = "UN_PAY"; //未付款
        public static final String HAVE_PAY_NOT_SEND = "HAVE_PAY_NOT_SEND"; //已付款未发货
//        public static final String UN_SEND = "UN_SEND"; //未发货
        public static final String HAVE_SEND = "HAVE_SEND"; //已发货
        public static final String SENDING = "SENDING";   //运送中
        public static final String SEND_DONE = "SEND_DONE";   //已送达

    }
}
